package com.panda.admin.feign;

import com.panda.admin.constant.ServiceConstants;
import com.panda.admin.login.entity.SystemLog;
import com.panda.admin.result.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;


/**
 * author: tcy
 * createDate: 2023/2/3
 * description: 登录feign调用，服务名称需要和网关路由设置一致
 */
@FeignClient(value = ServiceConstants.ADMIN_INTERFACES)
public interface InterfacesFeign {

    @ApiOperation(value = "保存记录")
    @PostMapping("/log/saveLogs")
    Result<Boolean> saveLogs(@RequestBody SystemLog log);
}
